package com.forum.mapper;

import com.forum.pojo.ForumComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
* @author 86152
* @description 针对表【forum_comment(评论)】的数据库操作Mapper
* @createDate 2023-01-31 00:42:33
* @Entity com.forum.pojo.ForumComment
*/
@Mapper
public interface ForumCommentMapper extends BaseMapper<ForumComment> {

    void updateCommenCount(@Param("changeCount") Integer changeCount, @Param("commentId") Integer commentId);

    ForumComment selectByCommentId(@Param("commentId") Integer commentId);

    ForumComment selectByTimeAndContent(@Param("createTime") Date createTime, @Param("messageContent") String messageContent);
}




